<div style="width:1000px;margin:0 auto;height:52px">
<div id="path">
    当前位置:
    <?php $_from = $this->_var['_curlocal']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'lnk');if (count($_from)):
    foreach ($_from AS $this->_var['lnk']):
?>
    <?php if ($this->_var['lnk']['url']): ?>
    <a href="<?php echo $this->_var['lnk']['url']; ?>"><?php echo htmlspecialchars($this->_var['lnk']['text']); ?></a> <span>&#8250;</span>
    <?php else: ?>
    <?php echo htmlspecialchars($this->_var['lnk']['text']); ?>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
    <div class="search" style="width:528px;float:right;margin-top:6px;">
        <div class="search1"></div>
        <div class="search2"></div>
        <div class="wrap">
            <form method="GET" action="<?php echo url('app=search&act=index'); ?>" style="float:left">
                <div class="border">
                    <div class="select_js">
                        <p>搜索商品</p>
                        <div class="ico"></div>
                        <ul>
                            <li ectype="index">搜索商品</li>
                            <li ectype="store">搜索店铺</li>
                            <!--<li ectype="groupbuy">搜索团购</li>-->
                        </ul>
                        <input type="hidden" name="act" value="index" />
                    </div>
                    <input type="text" name="keyword" class="text2" />
                </div>
                <input type="hidden" name="app" value="search" />
                <input type="submit" name="Submit" value="搜索" class="btn" />
            </form>
            <p style="float:right;margin-left:0;margin-top:0;">
                <a href="<?php echo url('app=category&act=index'); ?>">商品分类</a><br/><a href="<?php echo url('app=category&act=store'); ?>">店铺分类</a>
            </p>
        </div>
    </div>


  </div>
  <div id="nav">
      <div class="banner"><a href="<?php echo url('app=store&act=index&id=' . $this->_var['store']['store_id']. ''); ?>">
          <?php if ($this->_var['store']['store_banner']): ?>
        <img src="<?php echo $this->_var['store']['store_banner']; ?>" width="1000" height="120" />
        <?php else: ?>
        <img src="<?php echo $this->res_base . "/" . 'images/banner.jpg'; ?>"  />
        <?php endif; ?>
    </a></div>

    <ul>
        <li><a class="<?php if ($_GET['app'] == 'store' && $_GET['act'] == 'index'): ?>active<?php else: ?>normal<?php endif; ?>" href="<?php echo url('app=store&act=index&id=' . $this->_var['store']['store_id']. ''); ?>"><span>店铺首页</span></a></li>
        <?php if ($this->_var['store']['functions']['groupbuy'] && $this->_var['store']['enable_groupbuy']): ?>
        <li><a class="<?php if ($_GET['app'] == 'groupbuy' || $_GET['act'] == 'groupbuy'): ?>active<?php else: ?>normal<?php endif; ?>" href="<?php echo url('app=store&act=groupbuy&id=' . $this->_var['store']['store_id']. ''); ?>"><span>团购活动</span></a></li>
        <?php endif; ?>
        <?php $_from = $this->_var['store']['store_navs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'store_nav');if (count($_from)):
    foreach ($_from AS $this->_var['store_nav']):
?>
        <li><a class="<?php if ($_GET['app'] == 'store' && $_GET['act'] == 'article' && $_GET['id'] == $this->_var['store_nav']['article_id']): ?>active<?php else: ?>normal<?php endif; ?>" href="<?php echo url('app=store&act=article&id=' . $this->_var['store_nav']['article_id']. ''); ?>"><span><?php echo htmlspecialchars($this->_var['store_nav']['title']); ?></span></a></li>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        <li><a class="<?php if ($_GET['app'] == 'store' && $_GET['act'] == 'credit'): ?>active<?php else: ?>normal<?php endif; ?>" href="<?php echo url('app=store&act=credit&id=' . $this->_var['store']['store_id']. ''); ?>"><span>信用评价</span></a></li>
        <a class="collection" href="javascript:collect_store(<?php echo $this->_var['store']['store_id']; ?>)">收藏该店铺</a>
    </ul>

    <div class="nav_bg"></div>
</div>